exports.returnSuccess = (data, msg) => {
    const success = require('./resTemplate/success');
    if (data) {
        success.message = msg || '成功';
        success.data = data;
    }
    delete require.cache[require.resolve('./resTemplate/success')];
    return JSON.stringify(success);
};